import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router"

const routes:Array<RouteRecordRaw> = [
    {
        path:'/',
        name:'Region',
        component:()=>import('../view/RegoinLogin/Region.vue')//注册页面
    },
    {
        path:'/Login',
        name:'Login',
        component:()=>import('../view/RegoinLogin/Login.vue')//登录页面
    },
    {
        path:'/ShowLogin',
        name:'ShowLogin',
        component:()=>import('../view/RegoinLogin/ShowLogin.vue')//用户登录列表页面
    },
    {
        path:'/UserLogin',
        name:'UserLogin',
        component:()=>import('../view/User/UserLogin.vue')//用户登录页面
    },
    {
        path:'/AddUser',
        name:'AddUser',
        component:()=>import('../view/User/AddUser.vue')//添加用户页面
    },
    {
        path:'/UserShow',
        name:'UserShow',
        component:()=>import('../view/User/UserShow.vue')//用户列表显示页面
    },
    {
        path:'/UserInfo/:Id',
        name:'UserInfo',
        component:()=>import('../view/User/UserInfo.vue')//登录信息页面
    },
    {
        path:'/AddFinan/:Id',
        name:'AddFinan',
        component:()=>import('../view/Finan/AddFinan.vue')//购买理财信息 用户
    },
    {
        path:'/UserFinanInfo',
        name:'UserFinanInfo',
        component:()=>import('../view/Finan/UserFinanInfo.vue')//购买理财信息明细 管理员
    },
]

const router = createRouter({
    history:createWebHistory(),
    routes
})

export default router